import {ApiProperty} from "@nestjs/swagger";
import {IsArray, IsBoolean, IsNotEmpty, IsOptional} from "class-validator";
// import {EditorType} from "../../../common/enums/common.enum";

export enum BlogType {
	MarkDownFile=1,
	richText=2
}
export class UpdateBlogTagsDto {
	@ApiProperty({ description: '标签描述（markdown、富文本文本）' })
	@IsNotEmpty({message:"标签描述不能为空"})
	@IsOptional()
	tagDesc: string

	@ApiProperty({ description: '标签图片' })
	tagImg: string

	@ApiProperty({ description: '标签名称',type: String })
	@IsNotEmpty({message:'标签名称不能为空'})
	@IsOptional()
	tagName: string

	@ApiProperty({ description: 'id',type: Number })
	@IsOptional()
	id?: number

	@ApiProperty({ description: '是否可用',type: Boolean,default:true })
	@IsOptional()
	@IsBoolean({message:'是否可用应该为boolean类型'})
	enable?: boolean
}
